package cn.aws360.boot.data.api.pojo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author junnan
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "分页请求实体")
public class PageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页, 默认为第1页")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "页长度, 默认每页10条")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "排序字段")
    private String orderBy;

    @ApiModelProperty(value = "排序类型")
    private String orderDir;

}
